package org.simpleframework.mvc.render.impl;

import org.simpleframework.mvc.RequestProcessorChain;
import org.simpleframework.mvc.render.ResultRender;

/**
 * 默认渲染器 ,默认就返回状态码为200 ok即可
 *
 * @author: Oliver
 * @time: 2020/12/29/19:59
 */
public class DefaultResultRender implements ResultRender {
    @Override
    public void render(RequestProcessorChain chain) throws Exception {
        chain.getResponse().setStatus(chain.getCode());
    }
}
